package com.heima.api;

import com.heima.config.DefaultFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;

@FeignClient(value = "car-service",path = "/carts",configuration = DefaultFeignConfig.class)
public interface CarClient {
    @DeleteMapping
    void removeByItemIds(@RequestParam("ids") Collection<Long> ids);
}
